// Element 公用样式

// 进度条 // 等级头衔进度条
.el-progress-bar__outer {
  background: #ebebeb;

  .el-progress-bar__inner {
    background-color: #ffd307;
  }
}

.el-checkbox__input.is-focus .el-checkbox__inner {
  border-color: #DCDFE6;
}

// 提示
.el-message {
  &.el-message--warning {
    top: 50% !important;
    min-width: 100px !important;
    padding: 15px 25px 15px 20px;
  }

  &.el-message--error, &.el-message--success {
    top: 40% !important;
    min-width: 100px !important;
    padding: 15px 25px 15px 20px;
  }
}

// loading
.el-loading-mask {
  opacity: 1;

  &.is-fullscreen {
    .el-loading-spinner {
      .el-icon-loading {
        color: #000;
      }

      .el-loading-text {
        color: #000;
      }
    }
  }
}

.el-loading-mask {
  background-color: rgba(0, 0, 0, .3) !important;

  .el-loading-spinner {
    .path {
      stroke: #333;
    }

    .el-icon-loading {
      color: #333 !important;
    }

    .el-loading-text {
      color: #333 !important;
    }
  }
}

// 左侧菜单栏
.el-menu {
  border-right: none !important;
}


.play-content {
  .el-checkbox {
    .el-checkbox__label {
      font-size: 14px;
    }
  }
}


// checkbox
.ly-name {
  .el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #ff2b29;
    border-color: #ff2b29;
  }

  .el-checkbox__input.is-checked + .el-checkbox__label {
    color: #000;
  }
}
.el-select-dropdown__item {
  font-size: 13px;
}

.el-select-dropdown__item.selected {
  color: #ff2b29;
}

// table 表格
.ly-table {
  .has-gutter {
    tr {
      background-color: #f7f7f7;
    }
  }
  .ly-img {
    width: 180px;
  }
}

// 分页 签到
.el-pagination {
  text-align: right;
  &.is-background {
    button {
      background-color: #fff !important;
      border: 1px solid #e5e5e5;
      border-radius: 5px !important;
      height: 32px;
      width: 32px;
      margin: 0 2px;
      font-size: 14px;
      line-height: 32px;

      &:hover {
        background-color: #42bc9b !important;
        color: #fff;
      }
    }

    .el-pager {
      li {
        border: 1px solid #e5e5e5;
        border-radius: 5px;
        background-color: #fff;
        height: 32px;
        width: 32px;
        line-height: 32px;
        margin: 0 2px;
        font-size: 14px;

        &:not(.disabled).active {
          background-color: #42bc9b;
        }

        &:not(.disabled):hover {
          background-color: #42bc9b;
          color: #fff;
        }
      }
    }
  }
}

// 评分
.el-rate {
  &.ly-rate {
    .el-rate__icon {
      font-size: 32px;
    }
  }
}



// radio 单选按钮 公告样式
.el-radio__input {
  &.is-checked {
    .el-radio__inner {
      border-color: #ff2b29;
      background: #ff2b29;

      &:hover {
        border-color: #ff2b29;
      }
    }
  }

  .el-radio__inner {
    &:hover {
      border-color: #ff2b29;
    }
  }

  .el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {

  }

  &.is-checked + .el-radio__label {
    color: #ff2b29;
  }
}


.el-tabs__active-bar {
  background-color: #ff2b29;
  height: 4px;
}

.el-tabs__item {
  font-size: 16px;
}

.el-tabs__item:hover {
  color: #ff2b29;
}

.el-tabs__header {
  margin: 0;
}

.el-tabs__nav-wrap::after {
  height: 1px;
}


.el-slider__button {
  border: 1px solid #f6f6f6;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  background-color: #f8f8f8;
}

.el-slider__runway {
  background-color: #d2d2d2;
}




// 搜索栏
.ly-search {
  width: 100%;
  height: 60px;
  padding: 15px;
  border: 1px solid #e5e5e5;
  background: #fff;
  position: relative;
  font-size: 0;

  .ly-li {
    display: inline-block;
    vertical-align: top;
    width: 240px;
    position: relative;
    padding-left: 55px;
    .ly-label {
      width: 50px;
      height: 30px;
      position: absolute;
      line-height: 30px;
      top: 0;
      left: 0;
      font-size: 12px;
      color: #666;
    }
    input{
      &::-webkit-input-placeholder {
        color: #ccc;
        font-size: 12px;
      }
      &:-moz-placeholder {
        color: #ccc;
        font-size: 12px;
      }
      &::-moz-placeholder {
        color: #ccc;
        font-size: 12px;
      }
      &::-ms-input-placeholder {
        color: #ccc;
        font-size: 12px;
      }
    }
    .ly-input{
      width: 150px;
      line-height: 28px;
      border: 1px solid #DCDFE6;
      border-radius: 4px;
      padding: 0 5px;
      font-size: 13px;
    }
    .el-date-editor.el-input {
      width: 150px;
    }
    .el-input__inner{
      width: 150px;
      height: 30px;
      line-height: 28px;
      font-size: 13px;
      outline: 0;
      padding: 0 5px;
    }
    .el-input__icon{
      line-height: 28px;
    }
    .el-input__prefix{
      right: 5px;
      left: auto;
    }
    .el-select .el-input.is-focus .el-input__inner{
      border-color: #DCDFE6;
    }
    .el-select .el-input__inner:focus{
      border-color: #DCDFE6;
    }
  }
  .ly-btn{
    width: 100px;
    height: 30px;
    line-height: 30px;
    background: #608bf5;
    text-align: center;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: .3s;
    letter-spacing: 1px;
    border-radius: 4px;
    position: absolute;
    top: 15px;
    right: 20px;
    &:hover{
      background: #0a6cd6;
    }
  }
}
// 下拉选中颜色
.el-select-dropdown__item.selected{
  color: #0a6cd6 !important;
}
// 表格
.ly-table{
  padding: 20px 0;
  .el-table th{
    padding: 8px 0;
    background: #f5f5f5;
    color: #000;
  }
  .el-table td{
    padding: 8px 0;
  }
  .ly-btn{
    font-size: 12px;
    border: 1px solid #e5e5e5;
    padding: 2px 5px;
    border-radius: 3px;
    cursor: pointer;
    transform: scale(0.8);
    transition: .3s;
    margin: 0 10px;
    color: #999;
    &:hover{
      border: 1px solid #608bf5;
      color: #0a6cd6;
    }
  }
}

.ly-add-btn {
  position: relative;
  .ly-add-class {
    position: absolute;
    top: -45px;
    right: 0;
    background: #608bf5;
    text-align: center;
    font-size: 13px;
    color: #fff;
    cursor: pointer;
    transition: .3s;
    letter-spacing: 1px;
    border-radius: 4px;
    padding: 8px 20px;
    &:hover {
      background: #0a6cd6;
    }
  }
}

.ly-page{
  padding: 20px ;
  background: #fff;
}
.ly-list-input{
  width: 100%;
  li{
    width: 100%;
    margin-bottom: 10px;
    label{
      &.ly-label{
        width: 120px;
        text-align: right;
        padding-right: 5px;
        line-height: 40px;
        display: inline-block;
        vertical-align: top;
      }
    }
    .avatar-uploader{
      width: 200px;
      display: inline-block;
      vertical-align: top;
      border: 1px solid #e4e4e4;
      margin-top: 10px;
      img{
        width: 100%;
      }
    }
    .ly-radio{
      display: inline-block;
      vertical-align: top;
      line-height: 40px;
    }
    .ly-input{
      width: 280px;
      line-height: 40px;
      &.ly-link{
        width: 380px;
      }
    }
    .ly-textarea{
      width: 380px;
      height: 200px;
      textarea{
        min-height: 200px !important;
      }
    }
  }
}

.ly-btn-footer{
  padding: 30px 0;
}

.ly-blue {
  color: #0d8ddb !important;
}

.ly-red {
  color: #ff2b29 !important;
}

.ly-yellow {
  color: #f0ad4e !important;
}